//
//  OPPersonalInbox.h
//  OPFramework
//
//  Created by malcom on 7/23/08.
//  Copyright 2008 malcom-mac software. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "OPAuthUser.h"
#import "OPBaseObject.h"

@class OPAuthUser;
@interface OPPersonalInbox : OPBaseObject {
	int					p_unread_privateMsgs;	// number of private messages
	NSMutableArray		*p_privateMsgsList;		// list of private messages
}

@property (readonly) int			p_unread_privateMsgs;

#pragma mark PUBLIC METHODS
- (NSArray *) getPrivateMessages;
- (BOOL) refreshData;
- (BOOL) sendNewPrivateMessageTo:(OPUser *) _user withSubject:(NSString *) _subj text:(NSString *) _text options:(NSDictionary *) _options;

#pragma mark PRIVATE METHODS
- (void) _parseUnreadLists:(NSArray *) _result;
- (id) _initWithAuthorizedUser:(OPAuthUser *) _user;

@end
